package com.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.utils.Tree;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @Author: chihaojie
 * @Date: 2019/5/31 17:33
 * @Version 1.0
 * @Note
 */

@ApiModel("角色详情")
@Data
public class PermissionRoleVO {

    private Long id;

    @ApiModelProperty("角色名称")
    private String roleName;
    @ApiModelProperty("代理商id")
    private Long agent;
    @ApiModelProperty("状态")
    private Byte status;
    @ApiModelProperty("创建时间")
    private Date createTime;

    private String created;

    private Date updateTime;

    private String updated;

    //角色关联的资源
    @ApiModelProperty("资源树")
    private List<Tree<ResourceVO>> resourceTree;
}
